@import "../../index.module.scss";
.block {
  background-color: $background-color-base;
  padding: 15px 19px;
  display: flex;
  flex-wrap: wrap;
  filter: drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.15));
}

.header {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 70%;
}

.title {
  margin-right: 12px;
  text-decoration: none;
  color: $info-color;
  font-size: 20px;
  line-height: 28px;
}

.tag-field {
  flex-basis: 100%;
  margin-top: 4px;
}

.tag-field > button {
  border: 1px solid $text-color-secondary;
  border-radius: 2px;
  background: none;
  padding: 2px 6px 3px;
  cursor: pointer;
  margin-right: 8px;
}

.author-info {
  display: flex;
  margin-left: auto;
  align-items: flex-start;
}

.author-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-right: 12px;
}

.author {
  white-space: nowrap;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.5em;
  color: $heading-color;
  margin: 0;
}

.author:hover {
  color: $info-color;
}

.date {
  white-space: nowrap;
  margin: 0;
  font-size: 12px;
  line-height: 1.8em;
}

.avatar {
  width: 46px;
  height: 46px;
  object-fit: cover;
  object-position: top;
}

.description {
  font-size: 12px;
  line-height: 1.5em;
  flex-basis: 80%;
  margin-top: 7px;
  word-break: break-word;
}

.control-buttons {
  flex-basis: 20%;
  display: flex;
}

.button {
  cursor: pointer;
  margin-left: 12px;
  background: none;
  border: 1px solid transparent;
  padding: 6px 17px;
  height: fit-content;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6em;
}

.button-success {
  border-color: $success-color;
  color: $success-color;
}

.button-danger {
  border-color: $highlight-color;
  color: $highlight-color;
}

.modal-body {
  position: absolute;
  min-width: 27%;
  transform: translate(100px, -10px);
  padding: 12px 16px;
  background: $background-color-base;
  border-radius: 4px;
  filter: drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.15));
}

.modal-header {
  display: flex;
  align-items: flex-start;
}

.modal-header > img {
  display: block;
  margin-top: 0.3em;
}

.modal-header > * {
  margin-right: 9px;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.button-small {
  padding: 1px 8px;
}

.button-primary {
  background: $info-color;
  color: $background-color-base;
  border: none;
}

.button-secondary {
  background: $background-color-base;
  color: $text-color-secondary;
  border: 1px solid $border-color-base;
}

.body {
  flex-basis: 100%;
}

.body * {
  width: 100%;
}
